package com.ruoyi.tongyan.mapper;

import java.util.List;
import com.ruoyi.tongyan.domain.TDeclaration;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 科研项目申报Mapper接口
 *
 * @author ruoyi
 * @date 2025-04-09
 */
@Mapper
public interface TDeclarationMapper
{
    /**
     * 查询科研项目申报
     *
     * @param declarationId 科研项目申报主键
     * @return 科研项目申报
     */
    public TDeclaration selectTDeclarationByDeclarationId(Long declarationId);

    /**
     * 查询科研项目申报列表
     *
     * @param tDeclaration 科研项目申报
     * @return 科研项目申报集合
     */
    public List<TDeclaration> selectTDeclarationList(@Param("userId") Long userId, @Param("tDeclaration")TDeclaration tDeclaration);

//    List<TDeclaration> selectTDeclarationsByExpertId(@Param("userId") Long userId, TDeclaration tDeclaration);

    /**
     * 新增科研项目申报
     *
     * @param userId
     * @param tDeclaration 科研项目申报
     * @return 结果
     */
    public int insertTDeclaration(@Param("userId") Long userId, @Param("tDeclaration") TDeclaration tDeclaration);

    /**
     * 修改科研项目申报
     *
     * @param tDeclaration 科研项目申报
     * @return 结果
     */
    public int updateTDeclaration(TDeclaration tDeclaration);

    /**
     * 删除科研项目申报
     *
     * @param declarationId 科研项目申报主键
     * @return 结果
     */
    public int deleteTDeclarationByDeclarationId(Long declarationId);

    /**
     * 批量删除科研项目申报
     *
     * @param declarationIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTDeclarationByDeclarationIds(Long[] declarationIds);

}
